package com.xqboss.apps.mapper.synthesis;

import com.xqboss.apps.domain.synthesis.SynthesisPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.vo.synthesis.SynthesisPlanPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 合成方案 Mapper 接口
 * </p>
 *
 * @author 木鱼
 * @since 2023-11-17
 */
@Mapper
@Repository
public interface SynthesisPlanMapper extends BaseMapper<SynthesisPlan> {
    List<SynthesisPlanPageVo> selectBasicPage(@Param("name") String name);

    /**
     * 查询某一个方案 按结果集计算的最大数量
     */
    Integer selectRemainNum(@Param("planId") Long planId);
}
